package com.michaels;

import com.util.FileUtil;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class CategoryCodeService {
    public static void main(String[] args) {
        List<String> allCodeList = FileUtil.readFile("all_code_of_excel.txt");
//        List<String> allCodeList = FileUtil.readFile("excel_full_paths.txt");
        Set<String> allCodeSet = new HashSet<>();
        for(String code : allCodeList) {
            if(allCodeSet.contains(code) && !code.contains("//Archived Categories")){
                System.out.println(code);
            }
            allCodeSet.add(code);
        }
    }
}
